import { createApp } from 'vue';
import App from './App.vue';
import { bootstrap } from './cool';
import MathJax, { initMathJax, renderByMathjax } from "mathjax-vue3";
/*import * as echarts from '/echarts';*/
function onMathJaxReady() {
	const el = document.getElementById("hello");
	renderByMathjax(el);
}

initMathJax({ url: '/mathjax/tex-svg.min.js' }, onMathJaxReady);
const app = createApp(App);
app.use(MathJax)
// 启动
bootstrap(app)
	.then(() => {
		app.mount('#app');
	})
	.catch(err => {
		console.error('COOL-ADMIN 启动失败', err);
	});
